package com.example.demo.mapper;

import com.example.demo.pojo.Admin;
import com.example.demo.pojo.Backlogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BackLoginMapper {

    List<Admin> Backselect(
            @Param("backseq") int backseq,
            @Param("backname") String backname,
            @Param("pwd") String pwd
    );
    //登录
    List<Admin> login(@Param("backseq") String backseq,@Param("pwd") String pwd);

    void backupdate(
            @Param("name") String name,
            @Param("account") String account,
            @Param("state") int state,
            @Param("pwd") String pwd,
            @Param("seq") int seq,
            @Param("backraleid") int backroleid
    );

    void backdelete(
            @Param("seq") int seq
    );

    void backinsert(
            @Param("name") String name,
            @Param("pwd") String pwd,
            @Param("count") String count,
            @Param("role") int role
    );

}
